import { Tabs } from 'antd';
import ChargeDevice from './components/ChargeDevice';
import ChargeGun from './components/ChargeGun';
import Management from './components/Management';
import Map from './components/Map';
import styles from './index.less';

const Index = () => {
  const items = [
    {
      key: '1',
      label: '充电站管理',
      children: <Management />,
    },
    {
      key: '2',
      label: '充电站地图',
      children: <Map />,
    },
    {
      key: '3',
      label: '充电设备管理',
      children: <ChargeDevice />,
    },
    {
      key: '4',
      label: '充电枪管理',
      children: <ChargeGun />,
    },
  ];
  return (
    <div className={styles.page}>
      <Tabs items={items} className="fit-tabs" />
    </div>
  );
};

export default Index;
